<template>
  <div class="app">
    <h1>这个是页面的内容</h1>
    <visual-editor v-model="jsonData"></visual-editor>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { VisualEditor } from "./packages/visual-editor";

export default defineComponent({
  name: 'App',
  components: {
    VisualEditor
  },
  data() {
    return {
      jsonData: {
        container: {
          height: 800,
          width: 500
        },
        blocks: [
          {
            left: 100,
            top: 100
          },
          {
            left: 100,
            top: 100
          }
        ]
      }
    }
  }
});
</script>

<style lang="scss">
html,body{
  margin: 0;
  padding: 0;
}
</style>
